﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using Ecreate.Popedom;
namespace testHibernate
{
    class Program
    {




        //[Test]
        static void Main(string[] args)
        {
            HibernateInstance instance = new HibernateInstance();
            ISessionFactory factory=instance.getSessionFactory();
            ISession session = factory.OpenSession();
            //Ecreate.Popedom.Service.IMenuService menuService = new Ecreate.Popedom.Service.SpringImpl.MenuServiceImpl();
            Ecreate.Popedom.tMenu menu = new Ecreate.Popedom.tMenu();
            menu.Menucaption = "abcdefg";
            menu.Menuurl = "snake.url";
            session.Save(menu);
        }
    }
}
